<?php

namespace DesignNew\Strategy;

require('../vendor/autoload.php');

class StrategyClient
{
    public function __construct()
    {
        $dataset = [1, 5, 4, 3, 2, 8];
        $sorter = new Sorter(new BubbleSortStrategy());
        $sorter->sort($dataset);

        $sorter = new Sorter(new QuickSortStrategy());
        $sorter->sort($dataset);
    }
}

$client = new \DesignNew\Strategy\StrategyClient();